<?php

$sid = $_GET['sid'];
require_once 'zeka.php';
$sql ="
SELECT * 
FROM t_message
WHERE id =$sid
LIMIT 1
";
//echo $sql;
//die;

$result = $conn->query($sql);
$rows = $result->fetch_array(MYSQL_ASSOC);

$data = array();
$data['status'] = 1;
$data['info'] = $rows;
echo json_encode($data);

       